import request from '../../utils/request'

const addOrUpdateSortApi = (sort) => {
  return request.post('/api/app/sort', sort)
}

const getSortsApi = () => {
  return request.get(`/api/admin/sort`)
}
const deleteSortByIdApi = (sortId,deleted) => {
  return request.delete(`/api/admin/sort/${sortId}/${deleted}`)
}
const getSortByIdApi = (sortId) => {
  return request.get(`/api/app/sort/${sortId}`,{

  })
}
export {
  addOrUpdateSortApi,
  getSortsApi,
  getSortByIdApi,
  deleteSortByIdApi
}
